Skip to content

Conversation

@jonatanklosko
Copy link
Member

This compiles the NIF shared library with -fvisibility=hidden, hiding all symbols other than the NIF init required by ERTS. I believe this is a good default for NIFs in general, it avoids symbol clashes (e.g. when multiple NIFs use the same external library, possibly with different versions), and it can also improve performance and linking time.

For more details see elixir-nx/fine#2 (comment).

@jonatanklosko jonatanklosko merged commit 6f1c4de into main Mar 6, 2025
9 checks passed
@jonatanklosko jonatanklosko deleted the jk-visibility branch March 6, 2025 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants